/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取 POST /geo/open/area/getData */
export async function geoOpenAreaGetDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoOpenAreaGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RGeoAreaVo>('/geo/open/area/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取最近一个小区 POST /geo/open/area/getNearByData */
export async function geoOpenAreaGetNearByDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaOpenBoGeoOpenAreaGetNearByData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RGeoAreaVo>('/geo/open/area/getNearByData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查看附近所有小区 POST /geo/open/area/listGeoData */
export async function geoOpenAreaListGeoDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaOpenBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListGeoAreaVo>('/geo/open/area/listGeoData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取小区服务人员 POST /geo/open/area/listServeUser */
export async function geoOpenAreaListServeUserUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoOpenAreaListServeUser;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListEmployeeServeVo>('/geo/open/area/listServeUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /geo/open/area/pageOpenData */
export async function geoOpenAreaPageOpenDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoOpenAreaPageOpenData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoGeoAreaVo>('/geo/open/area/pageOpenData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
